From: Aron Xu Date: Mon, 5 Nov 2018 09:13:03 +0000 (+0000) Subject: fix_build_kfreebsd X-Git-Tag: archive/raspbian/8.0.2+ds-1+rpi1~1^2^2^2^2~8 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=ebc3546bd19f1f3bcb7eaf09fb21cd191bf62fda;p=trafficserver.git fix_build_kfreebsd Gbp-Pq: Name 0005-fix_build_kfreebsd.patch --- diff --git a/plugins/tcpinfo/tcpinfo.cc b/plugins/tcpinfo/tcpinfo.cc index dccb4c22..6a8c45ea 100644 --- a/plugins/tcpinfo/tcpinfo.cc +++ b/plugins/tcpinfo/tcpinfo.cc @@ -136,7 +136,7 @@ log_tcp_info(Config *config, const char *event_name, TSHttpSsn ssnp) TSReturnCode ret; if (config->log_level == 2) { -#if !defined(freebsd) || defined(__GLIBC__) +#if !defined(kfreebsd) && (!defined(freebsd) || defined(__GLIBC__)) ret = TSTextLogObjectWrite(config->log, "%s %s %s %u %u %u %u %u %u %u %u %u %u %u %u %u", event_name, client_str, server_str, info.tcpi_rtt, info.tcpi_rttvar, info.tcpi_last_data_sent, info.tcpi_last_data_recv, info.tcpi_snd_cwnd, info.tcpi_snd_ssthresh, info.tcpi_rcv_ssthresh, info.tcpi_unacked, diff --git a/proxy/Plugin.cc b/proxy/Plugin.cc index 075d9596..d4fd4111 100644 --- a/proxy/Plugin.cc +++ b/proxy/Plugin.cc @@ -126,7 +126,7 @@ plugin_load(int argc, char *argv[], bool validateOnly) return false; // this line won't get called since Fatal brings down ATS } -#if defined(freebsd) || defined(darwin) +#if (!defined(kfreebsd) && defined(freebsd)) || defined(darwin) optreset = 1; #endif #if defined(__GLIBC__) diff --git a/proxy/http/remap/RemapConfig.cc b/proxy/http/remap/RemapConfig.cc index dcbc0768..6f2f4230 100644 --- a/proxy/http/remap/RemapConfig.cc +++ b/proxy/http/remap/RemapConfig.cc @@ -897,7 +897,7 @@ remap_load_plugin(const char **argv, int argc, url_mapping *mp, char *errbuf, in void *ih = nullptr; TSReturnCode res = TS_SUCCESS; if (pi->fp_tsremap_new_instance) { -#if defined(freebsd) || defined(darwin) +#if (!defined(kfreebsd) && defined(freebsd)) || defined(darwin) optreset = 1; #endif #if defined(__GLIBC__) diff --git a/src/tscore/ink_memory.cc b/src/tscore/ink_memory.cc index 5419d627..7ba65bd6 100644 --- a/src/tscore/ink_memory.cc +++ b/src/tscore/ink_memory.cc @@ -27,7 +27,7 @@ #include "tscore/Diags.h" #include "tscore/ink_atomic.h" -#if defined(freebsd) +#if !defined(kfreebsd) && defined(freebsd) #include // for malloc_usable_size #endif